package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.UserChat;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserChatMapper {

    int insert(UserChat record);

    UserChat selectByPrimaryKey(Long id);

    List<UserChat> selectAll();

    List<UserChat> selectAllUsers(Long myUserId);

    UserChat selectAcceptUser(Long acceptUserId);

    List<UserChat> selectMessages(@Param("sendId") Long sendId, @Param("currentId") Long currentId);

    List<UserChat> getNewMessages(@Param("sendId") Long sendId, @Param("currentId") Long currentId);

    Integer getCounts(@Param("sendId") Long sendId, @Param("currentId") Long currentId);

    List<UserChat> getAllSendUsers(Long myUserId);
}